package com.test.dazuoye.service.serviceImpl;

import com.test.dazuoye.dao.DingDanDao;
import com.test.dazuoye.dao.ShangJiaDao;
import com.test.dazuoye.domain.DingDan;
import com.test.dazuoye.domain.shangjia;
import com.test.dazuoye.service.DingDanService;
import com.test.dazuoye.service.ShangJiaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @date 2020/6/6-21:55
 */
@Service
public class DingDanServiceImpl implements DingDanService {

    @Autowired
    private DingDanDao dingDanDao;

    @Override
    public List<DingDan> findAll() {

        List<DingDan> all = dingDanDao.findAll();
        return all;
    }

    @Override
    public void saveDingDan(DingDan dingDan) {
        dingDanDao.saveDingDan(dingDan);
    }

    @Override
    public void deleteDingDan(String dname) {
        dingDanDao.deleteDingDan(dname);
    }
}
